/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package managedbeans;

import Entities.Marquage;
import Entities.Modelerdp;
import SessionBeans.MarquageManager;
import javax.ejb.EJB;
import javax.inject.Named;
import javax.enterprise.context.SessionScoped;
import java.io.Serializable;

/**
 *
 * @author Dell
 */
@Named(value = "ajoutMarquageMBean")
@SessionScoped
public class AjoutMarquageMBean implements Serializable {

     @EJB
    private MarquageManager marquageManager;
    private Marquage m = new Marquage();

    /** Creates a new instance of AjoutMarquageMBean */
    //Ce commentaire montre que le commit a été pris en compte
    
    public AjoutMarquageMBean() {
    }
    private String VectMarq;
    private int refmarq;
    private Modelerdp idm;

    public String getVectMarq() {
        return VectMarq;
    }

    public void setVectMarq(String VectMarq) {
        this.VectMarq = VectMarq;
    }

    public Modelerdp getIdm() {
        return idm;
    }

    public void setIdm(Modelerdp idm) {
        this.idm = idm;
    }

    public int getRefmarq() {
        return refmarq;
    }

    public void setRefmarq(int refmarq) {
        this.refmarq = refmarq;
    }
    public String saveMarq()
    {
        m=marquageManager.savemarking(idm, refmarq, VectMarq); 
        return "Marquage";
    }

}
